﻿using System.Drawing;

namespace Just4Devs.Vsirc.Addin.UI
{
	public class JoinMessage : ScreenMessage
	{
		public JoinMessage(string nick, string channel)
		{
			base.Add(new ScreenMessageComponent(BuildJoinMessageText(nick, channel), Color.Purple));
		}

		private string BuildJoinMessageText(string nick, string channel)
		{
			return ScreenMessage.BuildString(true, nick, "has joined", channel, ".");
		}
	}
}
